package com.sky.mapper;

import com.sky.entity.DishFlavor;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface DishFlavorMapper {
    /**
     * 批量插入口味数据
     * @param flavors
     */
    void tasteInsert(List<DishFlavor> flavors);

    /**
     * 方法1 不推荐
     * 删除口味表数据
     * @param aLong
     */
    @Delete("delete from dish_flavor where dish_id = #{aLong}")
    void dishFlavorDelete(Long aLong);

    /**
     * 方法2
     * 删除口味表数据
     * @param ids
     */
    void dishFlavorDeleteList(List<Long> ids);
}
